package com.koalac.ironman.widget;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface.OnClickListener;

public class MyAlertDialog {
	
	public static void showConfirmAlertDialog(Context context,String title,String message,OnClickListener clickListener){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setCancelable(false);//必须要点击确定才能取消
		builder.setTitle(title).setMessage(message).setPositiveButton("确定", clickListener).show();
	}
	
	public static void showCommonAlertDialog(Context context,String title,String message,OnClickListener confirmClickListener,OnClickListener cancleClickListener){
		AlertDialog.Builder builder = new AlertDialog.Builder(context);
		builder.setCancelable(false);//必须要点击确定才能取消
		builder.setTitle(title).setMessage(message).setPositiveButton("确定", confirmClickListener).setNegativeButton("取消", cancleClickListener).show();
	}
}
